﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AMS.DataAccess
{
    internal static class CommonUtility
    {
        /// <summary>
        /// 判断一个对象是否为空
        /// </summary>
        /// <param name="data">要测试的对象</param>
        /// <returns></returns>
        public static bool IsNull(object data)
        {
            return data == null || data == DBNull.Value;
        }
    }
}
